package org.budo.mail.util;

import java.util.List;
import java.util.Map;

import javax.mail.Message;
import javax.mail.Message.RecipientType;

/**
 * @author lmw
 */
public class MessageUtil {
    @SuppressWarnings("deprecation")
    public static void addRecipients(Message message, RecipientType recipientType, String... addresses) {
        com.ewei.support.javax.mail.util.MessageUtil.addRecipients(message, recipientType, addresses);
    }

    @SuppressWarnings("deprecation")
    public static List<org.budo.mail.javax.MailAttachment> getAttachments(Message message) {
        return com.ewei.support.javax.mail.util.MessageUtil.getAttachments(message);
    }

    @SuppressWarnings("deprecation")
    public static Map<String, byte[]> getImagesInMessageBody(Message message) {
        return com.ewei.support.javax.mail.util.MessageUtil.getImagesInMessageBody(message);
    }

    @SuppressWarnings("deprecation")
    public static List<String> getCc(Message message) {
        return com.ewei.support.javax.mail.util.MessageUtil.getCc(message);
    }

    @SuppressWarnings("deprecation")
    public static List<String> getBcc(Message message) {
        return com.ewei.support.javax.mail.util.MessageUtil.getBcc(message);
    }

    @SuppressWarnings("deprecation")
    public static List<String> getFrom(Message message) {
        return com.ewei.support.javax.mail.util.MessageUtil.getFrom(message);
    }

    @SuppressWarnings("deprecation")
    public static List<String> getTo(Message message) {
        return com.ewei.support.javax.mail.util.MessageUtil.getTo(message);
    }

    @SuppressWarnings("deprecation")
    public static String getUid(Message message) {
        return com.ewei.support.javax.mail.util.MessageUtil.getUid(message);
    }

    @SuppressWarnings("deprecation")
    public static String getSubject(Message message) {
        return com.ewei.support.javax.mail.util.MessageUtil.getSubject(message);
    }
}